﻿<!DOCTYPE html >

<html>
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
	<title>礼一投资证券交易系统</title>
	<link rel="stylesheet" type="text/css" href="/static/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="/static/themes/default/base.css">
    <script type="text/javascript" src="/static/scripts/jquery.min.js"></script>
    <script type="text/javascript" src="/static/scripts/jquery.easyui.min.js"></script>
</head>
<body>
<div class="login-pc">
	<div class="login-main">
		<div class="login-logo"><img src="/static/themes/default/images/login_logo.png" height="137" width="379" /></div>
		<div class="login-form">
			<div class="login-title"><img src="/static/themes/default/images/login_title.png" height="47" width="329" /></div>
				<form id="ff" method="post" action="/login/">
					<span>用户名</span>　<input type="text" name="txxusr" id="txxusr" style="margin-right:65px;" /> <br>
					<span>密　码</span>　<input type="password" name="txxpwd"  id="txxpwd" onkeypress="if(event.keyCode==13) document.getElementById('loginnow').click()"/>　
					<a href="/upload/install/rj_tu1851.exe" title="浏览器安装"><i class="icon-filesave"></i></a>
					<input type="hidden" name="message"  id="message" value="${message}" />　
				</form>
			<div class="form-btns">
				<a href="javascript:;" onclick="submitForm()" id="loginnow">登 录</a>　　&nbsp;
				<a href="javascript:;" onclick="clearForm()">取 消</a>
			</div>
		</div>
	</div>
</div>

<script>
	$('.login-pc').height($(window).height());
	
    $(function() {
        if($('#message').val()!=''){
	        alert($('#message').val());
	    }
    });	
	
	function submitForm(){
	    if($('#txxusr').val()==''){
	        alert("请输入用户名");
	        return;
	    }
	    if($('#txxpwd').val()==''){
	        alert("请输入密码");
	        return;
	    }
	    document.getElementById("ff").submit();
	    //$("#ff").form("submit");
	}
	function clearForm(){
	    $('#txxusr').val('');
	    $('#txxpwd').val('');
	}
</script>
</body>
</html>